package Comparator;

import java.util.Comparator;

import packing.Block;

public class BlockVolumeComparator implements Comparator<Block> {

	@Override
	public int compare(Block o1, Block o2) {

		if(o1.getVolumeAllBox() > o2.getVolumeAllBox())
			return 1 ;
		else if(o1.getVolumeAllBox() < o2.getVolumeAllBox())
			return -1 ;
		else
			return 0 ;
	}
}